import {
  request,
} from "@rabbit.do/rabbit";

// 新增药品数据
export const createDrugData = (data) => request({
  url: "/swan/product/medicine/create",
  data,
});

// 修改药品数据
export const updateDrugData = (data) => request({
  url: "/swan/product/medicine/update",
  data,
});

// 查询单个药品数据
export const getDrugData = (data) => request({
  url: "/swan/product/medicine/get",
  data,
});

// 查询全部药品数据
export const getAllDrugData = () => request({
  url: "/swan/product/medicine/find/all",
});
